#include<iostream>
#include<string>

using namespace std;
int a[100005];

int  main(){
	int n,s=0,sf=0,i=1,wei=0;
	cin>>n;
	
	for(i;i<=n;i++){
		s+=i;
		if(s>n){
			sf=s-i;
			break;
		}
	}
	
	if(i%2 == 0){
		if(sf-n==0){
			wei = 1;
		}
		cout<<wei+n-sf<<"/"<<i+1-n+sf-wei-wei<<endl;
	}else{
		if(sf-n==0){
			wei = 1;
		}
		cout<<i+1-n+sf-wei-wei<<"/"<<wei+n-sf<<endl;
	}
	
	return 0;
	
	
}
